//
//  LoginApi.m
//  SmartiOSPublisher
//
//  Created by Liu,Qingcan on 2017/4/26.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import "LoginApi.h"

@implementation LoginApi{
    NSString *_username;
    NSString *_userpwd;
}
- (id)initWithUserName:(NSString *)userName userPwd:(NSString *)userPwd{
    self = [super init];
    if (self) {
        _username = userName;
        _userpwd = userPwd;
    }
    return self;
}

- (YTKRequestSerializerType)requestSerializerType{
    return YTKRequestSerializerTypeJSON;
}

- (NSString *)requestUrl{
    return @"/user/login";
}

- (YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

- (id)requestArgument{
            return @{
                 @"username":_username,
                 @"userpwd":_userpwd
                 };
    
}

@end
